#ifndef __SERIAL_TRANS_H__
#define __SERIAL_TRANS_H__
#include "rtthread.h"
#include "rtdevice.h"
#include "serial_v2.h"
#include "rtdef.h"
void serialInit(rt_device_t uart_device);

rt_uint32_t serialSend(rt_device_t dev, const void *buffer, rt_size_t size);

rt_uint32_t serialReceive(rt_device_t dev, void *buffer, rt_size_t size);

void setUartRXHandler(rt_device_t dev, rt_err_t (*rx_ind)(rt_device_t dev, rt_size_t size));

#endif

